package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 心情宠物关联对象 t_mood_pet
 * 
 * @author ruoyi
 * @date 2023-10-28
 */
@TableName("t_mood_pet")
public class MoodPet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宠物id */
    @Excel(name = "宠物id")
    private Long petId;

    /** 心情id */
    @Excel(name = "心情id")
    private Long moodId;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setPetId(Long petId) 
    {
        this.petId = petId;
    }

    public Long getPetId() 
    {
        return petId;
    }
    public void setMoodId(Long moodId) 
    {
        this.moodId = moodId;
    }

    public Long getMoodId() 
    {
        return moodId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("petId", getPetId())
            .append("moodId", getMoodId())
            .append("id", getId())
            .toString();
    }
}
